package com.example.email;

import com.example.core.handler.AbstractEventHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class EmailService extends AbstractEventHandler {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void send(Object object) {
        super.send(object);
        logger.warn("email 发送 ...." + object);
    }

    @Override
    public void handler(Object object) {
        logger.warn("email 处理 ...." + object);
    }
}
